<template>
  <div>
    <Dialog :show="show" @close="show = false" @ok="show = false" />

    <button @click="show = true">打开弹框</button>
  </div>
</template>

<script>
import Dialog from '@/components/DialogView.vue'

export default {
  components: {
    Dialog
  },
  data() {
    return {
      show: false,
    }
  }
}
</script>